All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.log.TraceLog

java.lang.Object
   |
   +----sun.server.log.Log
           |
           +----sun.server.log.TraceLog

public class TraceLog
extends Log
A class for logging server trace information. This class implements an unlimited number of logging levels. The default level, if unspecified in a write, is 2.


Constructor Index

 o TraceLog()
Creates a new trace log object.
 o TraceLog(OutputStream)
Creates a new trace log using the specified output stream.

Method Index

 o write(Exception)
Writes an exception to the log file if the current logging level is greater than or equal to 2.
 o write(int, Exception)
Writes an exception to the log file if the current logging level is greater than or equal to the specified level.
 o write(int, String)
Writes a message to the log file if the current logging level is greater than or equal to the specified level.
 o write(String)
Writes a message to the log file if the current logging level is greater than or equal to 2.

Constructors

 o TraceLog
 public TraceLog()
Creates a new trace log object.

 o TraceLog
 public TraceLog(OutputStream out)
Creates a new trace log using the specified output stream.

Parameters:
out - the output stream to write to

Methods

 o write
 public void write(String s)
Writes a message to the log file if the current logging level is greater than or equal to 2.

Parameters:
s - the message to write
 o write
 public synchronized void write(int level,
                                String s)
Writes a message to the log file if the current logging level is greater than or equal to the specified level. A date string will be prepended to the message line that is output.

Parameters:
level - the level for this message
s - the message to write
 o write
 public void write(Exception e)
Writes an exception to the log file if the current logging level is greater than or equal to 2.

Parameters:
s - the exception to write
 o write
 public synchronized void write(int level,
                                Exception e)
Writes an exception to the log file if the current logging level is greater than or equal to the specified level.

Parameters:
level - the level for this message
s - the exception to write

All Packages  Class Hierarchy  This Package  Previous  Next  Index